A ParamArray cannot have a Default Value Error

When you declared a parameter using the ParamArray keyword, you gave it a default value. This is not valid.


Example

The following method declaration is not valid:

Sub AddNumbers( ParamArray Nums as Integer =10)

You must remove the assignment statement at the end of the declaration.


See Also

ParamArray keyword.